{extend name="panel/layout" /}
{block name="main"}
<div class="row">
    <div class="col-md-12">
        <div class="panel">
            <div class="panel-heading"> Q Q 列表&nbsp;[<a href="{:url('qqAdd')}"><i class="fa fa-plus"></i></a>]<span
                    class="label label-info pull-right">{:count($qqList)}</span></div>
            <div class="panel-body table-responsive">
                <table class="table table-hover table-striped">
                    <thead>
                    <tr>
                        <th>#QID</th>
                        <th class="text-center">头像</th>
                        <th class="text-center">Q Q</th>
                        <th class="text-center">状态</th>
                        <th class="text-center">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="qqList" id="qq" }
                    <tr>
                        <td>#{$qq.qid}</td>
                        <td class="hidden-xs text-center">
                            <img src="//q4.qlogo.cn/headimg_dl?dst_uin={$qq.uin}&amp;spec=100"
                                 class="img-circle circle-border" style="height: 18px;">
                        </td>
                        <td class="text-center">{$qq.uin}</td>
                        <td class="text-center">{:getQqzt($qq.zt)}</td>
                        <td class="text-center">
                            <a class="btn-xs btn-success" href="{:url('qqInfo',['qid'=>$qq.qid])}">代挂详情</a>
                            <a href="{:url('qqAdd')}?qid={$qq.qid}" class="btn-xs btn-warning">更新密码</a>
                            <a class="btn-xs btn-danger" href="{:url('qqList')}?qid={$qq.qid}&action=del"
                               onclick="return confirm('你确定要删除此QQ号吗？删除后将停止所有代挂服务');">删除</a>
                        </td>
                    </tr>
                    {/volist}
                    </tr>
                    </tbody>
                </table>

            </div><!-- .widget-body -->
        </div><!-- .widget -->
    </div>
</div>
{/block}

